#include "person.h"

#include <QCoreApplication>
#include <QDBusConnection>

int main(int argc, char *argv[])
{
    QCoreApplication a(argc, argv);

    auto sessionBus = QDBusConnection::sessionBus();
    if (sessionBus.registerService("io.github.add358.dbus.service")) {
        sessionBus.registerObject("/",
                                  new Person, QDBusConnection::ExportAllContents);
    }

    return a.exec();
}
